class Computer{
	private double r;
	private double h;
	public Computer(){
	}
	public Computer(double r){
		this.setR(r);
	}
	public Computer(double r,double h){
		this.setR(r);
		this.setH(h);
	}
	public void setR(double r){
		
		this.r=r;
	}
public void setH(double h){
		
		this.h=h;
	}
public double getR(){
	
	return r;
}
public double getH(){
	
	return h;
}
public double ballV(){
	return (4.0/3.0)*3.14*r*r*r;
}
public double ballC(){
	return 4*3.14*r*r;
}
public double cylinderV(){
	return 3.14*h*r*r;
}
public double cylinderC(){
	return (2*3.14*r*h)+(2*3.14*r*r);
}
public double circleV(){
	return 1.0/3.0*3.14*r*r*h;
}
public double circleC(){
	return 3.14*r*r+3.14*sqrt(r*r+h*h);
}
private double sqrt(double d) {
	
	return 0;
}
}


